package com.wwj.framework.entity;


import com.wwj.utils.IDGenerator;

/**
 * Created by xya on 16-10-24.
 */
public abstract class BaseUUIDEntity implements IBaseEntity {

    private String id;

    public String getId() {
        if (null == id || "".equals(id.trim())) {
            id = IDGenerator.getUUID();
        }
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
